<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/include/global.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><property:value name="system.title"/></title>
<!--框架必需start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/jquery-1.4.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/framework_light.js"></script>

<link href="${pageContext.request.contextPath}/style/qui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/style/qui/skins/vistaBlue/style.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/bsFormat.js"></script>
<!--框架必需end-->

<!--修正IE6支持透明png图片start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/method/pngFix/supersleight.js"></script>

<!--截取文字start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/text/text-overflow.js"></script>
<!--截取文字end-->

<!--引入组件start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/attention/zDialog/zDrag.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/attention/zDialog/zDialog.js"></script>
<!--引入弹窗组件end-->
<script type="text/javascript" src="${pageContext.request.contextPath}/component/lhgdialog3.5/lhgdialog.min.js"></script>

<script type="text/javascript">
function verifyField(funcName,field,maxLimit)
{
	var isFunc=eval(funcName);
	if(isFunc)
	{
		while(!isFunc(field))
		{
			field.value =field.value.substring(0,field.value.length-1);
		}
	}
	verifyLen(field,maxLimit);
}
//验证并约束输入的字符串长度在规定范围之内
function verifyLen(field, maxLimit)
{
	var flag=false;
	var len=countLen(field);
    var maxZs = maxLimit/2;
	while (len> maxLimit)
	{	
		if(!isNaN(eval(field.value.charCodeAt(len-1)))&&field.value.charCodeAt(len-1)!=10)
			field.value =field.value.substring(0,field.value.length-1);
		else
			field.value =field.value.substring(0,field.value.length-2);
		flag=true;
		len=countLen(field);
	}
	if(flag)
	{
		alert("输入的字数个数不能超过"+maxZs+"个汉字!");
		return false;
	}
	return true;
}

//计算输入的字符串长度
function countLen(field)
{
	var str=field.value;
	var sub="";
	var len=0;
	for(var i=0;i<str.length;i++)
	{
		sub=str.charAt(i);
		if(sub<unescape("%00")||sub>unescape("%ff"))
		{
			len+=2;
		}
		else
		{
			len+=1;
		}
	}
	return len;

}
</script><script>
	$(function(){
		var htabIdx=0;
		var htabLiIdx=0;
		var htabIndex=jQuery.jCookie('htabIndex');
		var htabLiIndex=jQuery.jCookie('htabLiIndex');
		/* if(htabIndex!=false){
			htabIdx=parseInt(htabIndex);
		}
		if(htabLiIndex!=false){
			htabLiIdx=parseInt(htabLiIndex);
		} */
		$(".tab_bar_content >ul").filter(':eq('+htabIdx+')').show();
		$(".tab_bar li a").filter(':eq('+htabIdx+')').addClass("current");
		$(".tab_bar_content li a").filter(':eq('+htabLiIdx+')').addClass("current");
		$(".tab_bar li a").each(function(i){//点击横向主tab
			$(this).click(function(){
				$(".tab_bar li a").removeClass("current");
				$(this).addClass("current");
				$(".tab_bar_content >ul").hide();
				$(".tab_bar_content >ul").eq(i).show();
				jQuery.jCookie('htabIndex',i.toString());
			})
		})
		$(".tab_bar_content li a").each(function(i){//点击tab下的横向子栏目
			$(this).click(function(){
				$(".tab_bar_content li a").removeClass("current");
				$(this).addClass("current");
				jQuery.jCookie('htabLiIndex',i.toString());
			})
		})
	})
	function switchCurrTab(s) {
		var i=0;
		for (i=1;i<=2;i++) {
			var tmp = document.getElementById('_menu_' + i);
			tmp.className = "";
		}
		var nav = document.getElementById('_menu_' + s);
		nav.className = "current";
	}
</script>
<style>
a {
	behavior:url(js/method/focus.htc)
}
</style>

<script>
	//打开内页时出现进度条
	$(function(){
		$(".tab_bar_content a[target*=frmright]").click(function(){
			showProgressBar();
		})
	})
</script>
</head>
<body class="darkBg">
<div id="floatPanel-1"></div>		
<div id="main_1003">

<!--头部与导航start-->
<div id="hbox">
	<!-- 顶部banner -->

<script type="text/javascript">

function doOpen(t,url,w,h)
{
	var dlg = new jQuery.dialog({
		id: 'website',
        title: t,
        page: url,
        width: w,
    	height: h,
		cover: true,
		maxBtn: false,
		xButton:true,
		showLoading: false,
		rang:true,
	}).ShowDialog();
}
</script>
<script type="text/javascript">
	function _editUserInfo(){
		var url = "${pageContext.request.contextPath}/ugr/user_edit_info.jspa";	
		var dlg = new jQuery.dialog({
			id: 'editPasswd',
       		title: '修改用户信息',
        	page: url,
        	width: 600,
    		height: 380,
			cover: true,
			maxBtn: false,
			showLoading: false,
			rang:true
		}).ShowDialog();
	}
	function _editPasswd(){
		var url = "${pageContext.request.contextPath}/ugr/user_changepassword.jspa";	
		var dlg = new jQuery.dialog({
			id: 'editPasswd',
       		title: '修改密码',
        	page: url,
        	width: 600,
    		height: 380,
			cover: true,
			maxBtn: false,
			showLoading: false,
			rang:true
		}).ShowDialog();
	}
</script>
<!-- 顶部banner start-->
<div id="bs_bannercenter" class="tab_barBanner">
	<div id="bs_bannerright">
		<div>
			<div class="bs_banner_titleCon">
				<!-- <div class="bs_banner_logo_hmenu"></div> -->
				<div class="bs_banner_title2 bs_banner_title2_kjt"></div>
			</div>
			<div class="tabBarFunc">
				<div class="tabBarFunction">
					<span class="icon_user hand">
						<a onclick="javascript:_editUserInfo();">用户信息</a></span>
					<span class="icon_user hand">
						<a onclick="javascript:_editPasswd();">修改密码</a></span>
					<span class="icon_no hand"
						onclick='top.Dialog.confirm("确定要退出系统吗",function(){window.location="${pageContext.request.contextPath}/logout.jspa"});'>退出系统</span>
					<div class="clear"></div>
				</div>
				 <div class="tabBarFont">
					<li>欢迎 <b>${appContext_userName }</b> ，今天是 <script>
						var weekDayLabels = new Array("星期日", "星期一", "星期二",
								"星期三", "星期四", "星期五", "星期六");
						var now = new Date();
						var year = now.getFullYear();
						var month = now.getMonth() + 1;
						var day = now.getDate()
						var currentime = year + "年" + month + "月" + day + "日 "
								+ weekDayLabels[now.getDay()]
						document.write(currentime)
					</script></li>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- 顶部banner end-->	
	
<!-- 导航菜单 start -->
<div id="bs_navcenter" class="tab_barNav">
	<div id="bs_navleft">
		<div id="bs_navright">
			<div class="tab_bar">
				<ul>
				<!--menu-->
				<li><a href="${pageContext.request.contextPath}/main/${appContext_cssStyle}/welcome.jsp" id="_menu_1" target="frmright">欢迎页</a></li>
				<c:if test="${fn:contains(appContext_roles, 'approver')}">
					<li><a href="${pageContext.request.contextPath}/app/approve_list.jspa" id="_menu_2" target="frmright">申报项目管理</a></li>
				</c:if>
				<c:if test="${fn:contains(appContext_roles, 'zzdw')}">
					<li><a href="${pageContext.request.contextPath}/app/verify_list.jspa" id="_menu_3" target="frmright">项目审批</a></li>
					<!-- 
					<li><a href="${pageContext.request.contextPath}/app/approver_list.jspa" id="_menu_5" target="frmright">用户管理</a></li>
					 -->
				</c:if>
				<c:if test="${fn:contains(appContext_roles, 'gldw')}">
					<li><a href="${pageContext.request.contextPath}/app/verify_list.jspa" id="_menu_4" target="frmright">审批列表</a></li>
					<!-- 
					<li><a href="${pageContext.request.contextPath}/zzdw_browse.jspa" id="_menu_5" target="frmright">用户管理</a></li>
					<li><a href="${pageContext.request.contextPath}/app/stat_result.jspa" id="_menu_6" target="frmright">分析统计</a></li>
					 -->
				</c:if>
				<c:if test="${fn:contains(appContext_roles, 'leader')}">
					<li><a href="${pageContext.request.contextPath}/app/item_list.jspa" id="_menu_4" target="frmright">项目列表</a></li>
				</c:if>
				<div class="clear"></div>
				</ul>
			</div>
			<div class="clear"></div>
		</div>
	</div>
</div>
<!-- 导航菜单 end -->
	
</div>
<!--头部与导航end-->
<table width="100%" cellpadding="0" cellspacing="0" class="table_border0">
	<tr>
		<!--右侧区域start-->
		<td class="ali01 ver01"  width="100%">
							<div id="rbox">
								<div id="rbox_top">
								</div>
								<div id="rbox_middlecenter">
									<div id="rbox_middleleft">
										<div id="rbox_middleright">
											<div id="bs_right">
									      		<IFRAME scrolling="no" width="100%" frameBorder=0 id=frmright name=frmright src="${pageContext.request.contextPath}/main/${appContext_cssStyle}/welcome.jsp"  allowTransparency="true"></IFRAME>
											</div>
										</div>
								</div>
								</div>
								<div id="rbox_bottomcenter" >
								<div id="rbox_bottomleft">
								<div id="rbox_bottomright">

								</div>
								</div>
								</div>
							</div>
		</td>
		<!--右侧区域end-->
	</tr>
</table>

<!-- footer -->
<!--尾部区域start-->
<div id="fbox">
	<div id="bs_footcenter">
		<div id="bs_footleft">
			<div id="bs_footright" class="white">主办单位：临汾市科学技术局&nbsp;&nbsp;&nbsp;&nbsp;技术支持：山西省科学技术厅信息中心</div>
		</div>
	</div>
</div>
<!--尾部区域end-->

<!--浏览器resize事件修正start-->
<div id="resizeFix"></div>
<!--浏览器resize事件修正end-->

<!--载进度条start-->
<div class="progressBg" id="progress" style="display:none;"><div class="progressBar"></div></div>
<!--载进度条end-->

<!--弹出式提示框start-->
<script language="javascript">
</script>
</div>
</body>
</html>
